import 'vant/lib/index.css';
import '@/utils';
import 'lib-flexible';
import '@vant/touch-emulator';
import '@/styles';

import { createApp } from 'vue';

import ElementPlus from 'element-plus';
import vant from 'vant';

import components from '@/components';
import { $local } from '@/utils/local'
import { setupPathTo ,$pathTo} from '@/utils/pathTo'
import {appToken,baseStoreState} from '@/utils/dict'

import App from './App.vue';
import { setupRouter } from '@/modules/DEMO_MODULE/router';
import { setupStore } from '@/modules/DEMO_MODULE/store';

const app = createApp(App)

// 安装vuex
setupStore(app)
// 安装router
setupRouter(app)
//添加跳转方法
setupPathTo(app)
//注入vant
app.use(vant)
//注入公用组件
app.use(components)
app.mount('#app')
window.App = app;
